﻿<%@ Page Language="C#" MasterPageFile="~/LivingWellClinic.Master" AutoEventWireup="true" CodeBehind="Appointments.aspx.cs" Inherits="livingwellclinic.Appointments" %>

<asp:Content ID="Content0" ContentPlaceHolderID="title" runat="server">Appointments</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
        }
        .style2
        {
            width: 55px;
        }
        .style5
        {
            color: #FF0000;
        }
        </style>
         <script type="text/javascript">
	  
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <div>
     
        <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
            <asp:View ID="View1" runat="server">
                If you are wanting to make an appointment you can call us at 937-766-7142.<br /> 
                We are open 9 A.M. to 5 P.M.<br />
                <br />
                <table class="style1">
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label13" runat="server" Text="First Name:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="firstnametxt" runat="server"></asp:TextBox>
                        </td>
                        <td class="style2">
                            <asp:RequiredFieldValidator ID="NameRequiredFieldValidator" runat="server" 
                                ControlToValidate="firstnametxt" CssClass="style5" 
                                ErrorMessage="Please enter your first name" ValidationGroup="Submit">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label14" runat="server" Text="MI:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="Mtxt" runat="server" Width="29px"></asp:TextBox>
                        </td>
                        <td class="style2">
                            <asp:RequiredFieldValidator ID="NameRequiredFieldValidator0" runat="server" 
                                ControlToValidate="Mtxt" CssClass="style5" 
                                ErrorMessage="Please enter your middle intial" ValidationGroup="Submit">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label15" runat="server" Text="Last Name:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="lastnametxt" runat="server"></asp:TextBox>
                        </td>
                        <td class="style2">
                            <asp:RequiredFieldValidator ID="NameRequiredFieldValidator1" runat="server" 
                                ControlToValidate="lastnametxt" CssClass="style5" 
                                ErrorMessage="Please enter your last  name" ValidationGroup="Submit">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label16" runat="server" Text="Email:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="emailtxt" runat="server"></asp:TextBox>
                        </td>
                        <td class="style2">
                            <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                ControlToValidate="emailtxt" ErrorMessage="E-mail is required." 
                                style="color: #FF0000" ToolTip="E-mail is required." 
                                ValidationGroup="Submit">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label17" runat="server" Text="Phone:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="phonetxt" runat="server"></asp:TextBox>
                        </td>
                        <td class="style2">
                            <asp:RegularExpressionValidator ID="PhoneRegularExpressionValidator" 
                                runat="server" ControlToValidate="phonetxt" CssClass="style5" 
                                ErrorMessage="Please enter a valid phone number" 
                                ValidationExpression="((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4}" 
                                ValidationGroup="Submit">*</asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Label ID="Label18" runat="server" Text="Date:"></asp:Label>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownList1" runat="server">
                                <asp:ListItem>None</asp:ListItem>
                                <asp:ListItem>Monday</asp:ListItem>
                                <asp:ListItem>Tuesday</asp:ListItem>
                                <asp:ListItem>Wednesday</asp:ListItem>
                                <asp:ListItem>Thursday</asp:ListItem>
                                <asp:ListItem>Friday</asp:ListItem>
                                <asp:ListItem>Saturday</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="style2">
                            <asp:CustomValidator ID="ddldate" runat="server" 
                                ControlToValidate="DropDownList1" ErrorMessage="Please select a day" 
                                style="color: #FF0000" ValidationGroup="Submit">*</asp:CustomValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1" colspan="3">
                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                                style="color: #FF0000" ValidationGroup="Submit" />
                        </td>
                    </tr>
                </table>
                <br />
                <asp:Button ID="Button1" runat="server" Text="Submit" onclick="Button1_Click" 
                    ValidationGroup="Submit" />
                <asp:Button ID="cancelbutton" runat="server" onclick="cancelbutton_Click" 
                    Text="Cancel" />
            </asp:View>
            <asp:View ID="View2" runat="server">
                An appointment has been made for
                <asp:Label ID="lblname" runat="server"></asp:Label>
                &nbsp;on
                <asp:Label ID="lblday" runat="server"></asp:Label>
                .<br />
                <asp:Button ID="Button" runat="server" onclick="Button_Click" Text="I'm Done" />
            </asp:View>
        </asp:MultiView>
        <br />
        <br />
        <br />
    </div>
</asp:Content>